/* ===== 全局重置 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 通用样式 ===== */
a {
    text-decoration: none;
    color: inherit;
}

img,
video,
svg {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ===== 工具类 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* ===== 响应式断点 ===== */
@media (max-width: 768px) {
    html {
        font-size: 56.25%;
        /* 9px */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
        /* 8px */
    }
}